package com.ag.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;

/**
 * TbLogPsContent entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "TB_LOG_PS_CONTENT", schema = "dbo", catalog = "AGDB")
public class TbLogPsContent implements java.io.Serializable {

	// Fields

	private String pscId;
	private TbLogType tbLogType;
	private TbLogPlanStep tbLogPlanStep;
	private String pscContent;
	private String a;
	private String b;
	private String c;

	// Constructors

	/** default constructor */
	public TbLogPsContent() {
	}

	/** minimal constructor */
	public TbLogPsContent(String pscContent) {
		this.pscContent = pscContent;
	}

	/** full constructor */
	public TbLogPsContent(TbLogType tbLogType, TbLogPlanStep tbLogPlanStep,
			String pscContent, String a, String b, String c) {
		this.tbLogType = tbLogType;
		this.tbLogPlanStep = tbLogPlanStep;
		this.pscContent = pscContent;
		this.a = a;
		this.b = b;
		this.c = c;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "uuid.hex")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "PSC_ID", unique = true, nullable = false, length = 32)
	public String getPscId() {
		return this.pscId;
	}

	public void setPscId(String pscId) {
		this.pscId = pscId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "LT_ID")
	public TbLogType getTbLogType() {
		return this.tbLogType;
	}

	public void setTbLogType(TbLogType tbLogType) {
		this.tbLogType = tbLogType;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "PS_ID")
	public TbLogPlanStep getTbLogPlanStep() {
		return this.tbLogPlanStep;
	}

	public void setTbLogPlanStep(TbLogPlanStep tbLogPlanStep) {
		this.tbLogPlanStep = tbLogPlanStep;
	}

	@Column(name = "PSC_CONTENT", nullable = false, length = 4000)
	public String getPscContent() {
		return this.pscContent;
	}

	public void setPscContent(String pscContent) {
		this.pscContent = pscContent;
	}

	@Column(name = "A", length = 50)
	public String getA() {
		return this.a;
	}

	public void setA(String a) {
		this.a = a;
	}

	@Column(name = "B", length = 50)
	public String getB() {
		return this.b;
	}

	public void setB(String b) {
		this.b = b;
	}

	@Column(name = "C", length = 50)
	public String getC() {
		return this.c;
	}

	public void setC(String c) {
		this.c = c;
	}

}